mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
6423256: GC stacks should use a better data structure
6942771: SEGV in ParScanThreadState::take_from_overflow_stack Reviewed-by: apetrusenko, ysr, pbk
This commit is contained in:
parent
aff36499e7
commit
1cdd538ea5
30 changed files with 718 additions and 402 deletions
|
@ -289,16 +289,17 @@ private:
|
|||
|
||||
// One of the following macros must be used when allocating
|
||||
// an array or object from an arena
|
||||
#define NEW_ARENA_ARRAY(arena, type, size)\
|
||||
(type*) arena->Amalloc((size) * sizeof(type))
|
||||
#define NEW_ARENA_ARRAY(arena, type, size) \
|
||||
(type*) (arena)->Amalloc((size) * sizeof(type))
|
||||
|
||||
#define REALLOC_ARENA_ARRAY(arena, type, old, old_size, new_size)\
|
||||
(type*) arena->Arealloc((char*)(old), (old_size) * sizeof(type), (new_size) * sizeof(type) )
|
||||
#define REALLOC_ARENA_ARRAY(arena, type, old, old_size, new_size) \
|
||||
(type*) (arena)->Arealloc((char*)(old), (old_size) * sizeof(type), \
|
||||
(new_size) * sizeof(type) )
|
||||
|
||||
#define FREE_ARENA_ARRAY(arena, type, old, size)\
|
||||
arena->Afree((char*)(old), (size) * sizeof(type))
|
||||
#define FREE_ARENA_ARRAY(arena, type, old, size) \
|
||||
(arena)->Afree((char*)(old), (size) * sizeof(type))
|
||||
|
||||
#define NEW_ARENA_OBJ(arena, type)\
|
||||
#define NEW_ARENA_OBJ(arena, type) \
|
||||
NEW_ARENA_ARRAY(arena, type, 1)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue