بنقرة واحدة
simplify-lxr
Simplify LXR GC for upstreaming
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Simplify LXR GC for upstreaming
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | simplify-lxr |
| description | Simplify LXR GC for upstreaming |
| disable-model-invocation | true |
lxr-x/simplified branch in mmtk-core and lxr-x/jdk21-simplified branch in mmtk-openjdk contain the implementation of the LXR garbage collector.
lxr-x/simplified in mmtk-core is based on tag v0.32.0
lxr-x/jdk21-simplified in mmtk-openjdk is based on tag v0.32.0-jdk-21
Both branches contains:
You need to work on the lxr-x/simplified and lxr-x/jdk21-simplified.
You need to simplify the two branches so that the user can easily upstream a simplified version of LXR GC easily, although the performance may not be as good as the original one.
Assume the upstream is at v0.32.0 and v0.32.0-jdk-21.
Generate git diff for both mmtk-core and mmtk-openjdk, and understand the changes in the two branches.
The diff may be over 8K LOC, You can't do all the changes in one go. Only pick a few components/aspects of the codebase that can be simplified/refactored, and perform this task.
Enter plan mode, and preset a plan before proceeding with the task.
panic = "abort" in mmtk-openjdk/mmtk/Cargo.toml, otherwise pmd may fail. Leave this bug for now.Use test-simplified-lxr skill to test and verify LXR GC.
Refer to the test-simplified-lxr skill on how to run the benchmarks and verify the correctness of the simplified LXR GC.
To fix a crashing benchmark, you have the following options:
--release) to get more debug info--gdb --no-interactive to the command, and it will automatically run the program in gdb, and print the backtrace if it crashes.cargo fmt under either mmtk-core/ or mmtk-openjdk/mmtk before finish.$ARGUMENTS