[aarch64-port-dev ] Use os::malloc to allocate the register map.
Andrew Haley
aph at redhat.com
Mon Sep 22 09:21:13 UTC 2014
We're not allowed to use new char[] in HotSpot code.
Andrew.
# HG changeset patch
# User aph
# Date 1410940967 14400
# Wed Sep 17 04:02:47 2014 -0400
# Node ID 9200b9e93039412a3bcc2552575ae6a4d311daf9
# Parent a6df78e590bb97446250ac5466f5d59a86161c43
Use os::malloc to allocate the register map.
diff -r a6df78e590bb -r 9200b9e93039 src/cpu/aarch64/vm/frame_aarch64.cpp
--- a/src/cpu/aarch64/vm/frame_aarch64.cpp Wed Sep 10 10:42:58 2014 -0400
+++ b/src/cpu/aarch64/vm/frame_aarch64.cpp Wed Sep 17 04:02:47 2014 -0400
@@ -807,7 +807,7 @@
unsigned long bcx, unsigned long thread) {
RegisterMap map((JavaThread*)thread, false);
if (!reg_map) {
- reg_map = (RegisterMap*)new char[sizeof map];
+ reg_map = (RegisterMap*)os::malloc(sizeof map, mtNone);
}
memcpy(reg_map, &map, sizeof map);
{
More information about the aarch64-port-dev
mailing list