Skip to content

Commit 09f6d98

Browse files
authored
Fix Interpreter allocation fastpath (#116)
1 parent 5a6319c commit 09f6d98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

openjdk/mmtkHeap.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#ifndef MMTK_OPENJDK_MMTK_HEAP_HPP
2626
#define MMTK_OPENJDK_MMTK_HEAP_HPP
2727

28+
#include "mmtkBarrierSet.hpp"
2829
#include "gc/shared/collectedHeap.hpp"
2930
#include "gc/shared/collectorPolicy.hpp"
3031
#include "gc/shared/gcPolicyCounters.hpp"
@@ -98,6 +99,10 @@ class MMTkHeap : public CollectedHeap {
9899
bool is_in_reserved(const void* p) const;
99100
bool supports_tlab_allocation() const;
100101

102+
bool supports_inline_contig_alloc() const {
103+
return MMTK_ENABLE_ALLOCATION_FASTPATH;
104+
}
105+
101106
// The amount of space available for thread-local allocation buffers.
102107
size_t tlab_capacity(Thread *thr) const;
103108

0 commit comments

Comments
 (0)