@@ -343,10 +343,8 @@
// 3 bytes per character. We concatenate three such strings.
// Yes, I know this is ridiculous, but it's debug code and glibc
// allocates large arrays very efficiently.
-// size_t len = (65536 * 3) * 3;
-// char *name = new char[len];
- size_t len = 1024;
- char name[1024];
+ size_t len = (65536 * 3) * 3;
+ char *name = new char[len];
strncpy(name, _method->holder()->name()->as_utf8(), len);
for (char *p = strpbrk(name, "/"); p; p = strpbrk(p, "/")) {
@@ -235,10 +235,8 @@
sasm->must_gc_arguments());
#ifdef BUILTIN_SIM
if (NotifySimulator) {
-// size_t len = 65536;
-// char *name = new char[len];
- size_t len = 1024;
- char name[1024];
+ size_t len = 65536;
+ char *name = new char[len];
// tell the sim about the new stub code
AArch64Simulator *simulator = AArch64Simulator::get_current(UseSimulatorCache, DisableBCCheck);