Skip to content

feat(jdk12): add demo for JEP 346 - #408

Closed
spaultek314 wants to merge 5 commits into
AloisSeckar:masterfrom
spaultek314:1-jep-346
Closed

spaultek314 wants to merge 5 commits into
AloisSeckar:masterfrom
spaultek314:1-jep-346

Conversation

@spaultek314

@spaultek314 spaultek314 commented Oct 16, 2026 •

Copy link
Copy Markdown

Closes #406

@AloisSeckar AloisSeckar left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @spaultek314 and thank you for your contribution

I find a couple of things that have to be fixed before I can approve and merge your work. Please, have a look. Ask, if you need more info.

import org.javademos.commons.IDemo;
import org.javademos.commons.IDemoLoader;

import org.javademos.java12.jep346.G1PeriodicGCDemo;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, adjust order of the imports so the JEP folders are sorted ascending

public void demo() {
info(346);

System.out.println("G1 Periodic Garbage Collection");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there is no relevant code to demonstrate a language feature or an API usage, we only use comments in file, not printing out...please turn those into Java comments

check the contribution guide for details if needed

Comment thread src/main/resources/JDK12Info.json Outdated
"name": "JEP 346 - Promptly Return Unused Committed Memory from G1",
"dscr": "G1 can periodically consider garbage collection during idle periods to return unused committed heap memory to the operating system.",
"link": false,
"code": true

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there will be false (printing out info is not considered a "code" for our purposes)

@AloisSeckar

AloisSeckar commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

hi, @spaultek314 , are you still planning to work on this issue in different PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JEP 346 – Promptly Return Unused Committed Memory from G1

2 participants