mmtk / openjdk Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
In src/hotspot/share/opto/matcher.cpp
, there is a line #if defined(INCLUDE_ZGC) && !defined(INCLUDE_THIRD_PARTY_HEAP)
. Supposedly the code following that should only be enabled when ZGC is enabled.
However, the INCLUDE_ZGC
macro should not be used by testing if it is defined. It is always defined (as 0 or 1) and should be used as a boolean value. Therefore defined(INCLUDE_ZGC)
is always true.
This is causing compilation error when compiling OpenJDK where neither ZGC nor third-party heap is enabled. Because OpenJDK 11 only supports ZGC on Linux/x64, attempting to compile this openjdk repo on MacOS or AArch64 without third-party heap will result in compilation error because the code enclosed by this macro is erroneously enabled. This problem can also be reproduced on Linux/x64 by disabling ZGC manually.
How to reproduce:
On Linux/x86, follow README.md
in `mmtk-openjdk, but
--enable-jvm-features=-zgc
to sh configure
THIRD_PARTY_HEAP=$PWD/../../openjdk
from make
Then compilation will fail.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.