--- a/src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp Tue May 07 16:18:21 2019 -0700
+++ b/src/hotspot/share/gc/shenandoah/shenandoahArguments.cpp Wed May 15 22:45:54 2019 +0200
@@ -29,7 +29,6 @@
#include "gc/shenandoah/shenandoahCollectorPolicy.hpp"
#include "gc/shenandoah/shenandoahHeap.inline.hpp"
#include "gc/shenandoah/shenandoahHeapRegion.hpp"
-#include "gc/shenandoah/shenandoahTaskqueue.hpp"
#include "utilities/defaultStream.hpp"
void ShenandoahArguments::initialize() {
@@ -54,17 +53,6 @@
FLAG_SET_DEFAULT(ShenandoahVerifyOptoBarriers, false);
#endif
-#ifdef _LP64
- // The optimized ObjArrayChunkedTask takes some bits away from the full 64 addressable
- // bits, fail if we ever attempt to address more than we can. Only valid on 64bit.
- if (MaxHeapSize >= ObjArrayChunkedTask::max_addressable()) {
- jio_fprintf(defaultStream::error_stream(),
- "Shenandoah GC cannot address more than " SIZE_FORMAT " bytes, and " SIZE_FORMAT " bytes heap requested.",
- ObjArrayChunkedTask::max_addressable(), MaxHeapSize);
- vm_exit(1);
- }
-#endif
-
if (UseLargePages && (MaxHeapSize / os::large_page_size()) < ShenandoahHeapRegion::MIN_NUM_REGIONS) {
warning("Large pages size (" SIZE_FORMAT "K) is too large to afford page-sized regions, disabling uncommit",
os::large_page_size() / K);