Skip to content

Commit e82103c

Browse files
committed
Actually call gc
1 parent 6ffa290 commit e82103c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

java_runtime/src/classes/java/lang/system.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,10 @@ impl System {
9393
Ok(context.now() as _)
9494
}
9595

96-
async fn gc(_jvm: &Jvm, _: &mut RuntimeContext) -> Result<()> {
96+
async fn gc(jvm: &Jvm, _: &mut RuntimeContext) -> Result<()> {
9797
tracing::debug!("java.lang.System::gc()");
9898

99-
// TODO gc experimental
100-
// jvm.collect_garbage()?;
99+
jvm.collect_garbage()?;
101100

102101
Ok(())
103102
}

0 commit comments

Comments
 (0)