Skip to content

Commit

Permalink
JVM: garbage collection finalise
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjacobmorris committed Dec 24, 2024
1 parent d06e7aa commit 48898e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Java/Performance and Memory/PerformanceAndMemoryTuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ String `intern()` ensures that for the same value of string same object is re-us
### Garbage collection
Any object which cannot be reached from stack,metaspace will be eligible for garbage collected.
`System.gc()` is a hint to JVM to do garbage collection

#### finalise()
> Note: Depreciated since java 9
It is executed when object is destroyed during gc. It had a lot of inherent issues like infinite loops, memory leaks ,deadlocks etc
## Runtime Optimization
### JVM Params
| Flag | Description |
Expand Down

0 comments on commit 48898e8

Please sign in to comment.