mmtk-openjdk icon indicating copy to clipboard operation
mmtk-openjdk copied to clipboard

struct layout differences between debug and release builds

Open wks opened this issue 2 years ago • 0 comments

(Moved from https://github.com/mmtk/mmtk-core/issues/353)

Some structs in the mmtk-openjdk binding have fields that defers between debug/release builds of the C++ code of OpenJDK. Currently, we use the directive #[cfg(debug_assertions)] to make the difference. We should consider using other mechanisms so that we can have the Rust part (together with MMTk core) in debug build, and the C++ part in release build.

wks avatar Nov 29 '23 04:11 wks