mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
6711316: Open source the Garbage-First garbage collector
First mercurial integration of the code for the Garbage-First garbage collector. Reviewed-by: apetrusenko, iveresov, jmasa, sgoldman, tonyp, ysr
This commit is contained in:
parent
39463bb3fc
commit
18f3386a98
215 changed files with 36088 additions and 1249 deletions
|
@ -338,6 +338,12 @@ class ResourceObj ALLOCATION_SUPER_CLASS_SPEC {
|
|||
DEBUG_ONLY(((ResourceObj *)res)->_allocation = RESOURCE_AREA;)
|
||||
return res;
|
||||
}
|
||||
void* operator new(size_t size, void* where, allocation_type type) {
|
||||
void* res = where;
|
||||
// Set allocation type in the resource object
|
||||
DEBUG_ONLY(((ResourceObj *)res)->_allocation = type;)
|
||||
return res;
|
||||
}
|
||||
void operator delete(void* p);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue