Problem:
During compilation, the compiler gave a warning stating the stack frame size of 4220 bytes in art::NanoscopeSampler::signal_handler and aborted compilation (exact error message is at the bottom). I believe the source of the problem originates from allocating a 4K char buffer in runtime/nanoscope_sample.cc:136. The maximum stack size isn't clear from the documentation, but is designed to generate warning if its larger than 2700, 6000 or 1728 bytes according to build/Android.common_build.mk:346-350 depending on different mode.
Questions:
What's the proper way to get around this build issue?
Is there any unintended side affect to increase the -Wframe-larger-than parameter a larger size?
Problem: During compilation, the compiler gave a warning stating the stack frame size of 4220 bytes in art::NanoscopeSampler::signal_handler and aborted compilation (exact error message is at the bottom). I believe the source of the problem originates from allocating a 4K char buffer in runtime/nanoscope_sample.cc:136. The maximum stack size isn't clear from the documentation, but is designed to generate warning if its larger than 2700, 6000 or 1728 bytes according to build/Android.common_build.mk:346-350 depending on different mode.
Questions:
Full compilation error message: