Skip to content

Commit f309a4e

Browse files
committed
Fix compiler errors
1 parent d0b692b commit f309a4e

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

openjdk/mmtkHeap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jint MMTkHeap::initialize() {
110110
//_start = (HeapWord*)heap_rs.base();
111111
//_end = (HeapWord*)(heap_rs.base() + heap_rs.size());
112112

113-
ReservedHeapSpace heap_rs = Universe::reserve_heap(mmtk_heap_size, HeapAlignment);
113+
ReservedHeapSpace heap_rs = Universe::reserve_heap(heap_size, HeapAlignment);
114114
// printf("start: %p, end: %p\n", _start, _end);
115115

116116
initialize_reserved_region(heap_rs);

openjdk/mmtkHeap.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,6 @@ class MMTkHeap : public CollectedHeap {
186186
// An object is scavengable if its location may move during a scavenge.
187187
// (A scavenge is a GC which is not a full GC.)
188188
inline bool is_scavengable(oop obj) { return true; }
189-
// Registering and unregistering an nmethod (compiled code) with the heap.
190-
// Override with specific mechanism for each specialized heap type.
191-
virtual void register_nmethod(nmethod* nm);
192-
virtual void unregister_nmethod(nmethod* nm);
193189

194190
// Heap verification
195191
void verify(VerifyOption option);

0 commit comments

Comments
 (0)