Skip to content

Commit

Permalink
Merge pull request #215 from stevenschlansker/bb-classloader-warn
Browse files Browse the repository at this point in the history
Blackbird: add memory 'leak' OOM warning
  • Loading branch information
cowtowncoder committed Jul 17, 2023
2 parents b4c073f + 90ff611 commit 0e16583
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions blackbird/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ implementations, we can write needed adapters as simple Java code and use the me
to create distinct call sites for every needed access path. This should allow each accessor to
have a monomorphic call profile and easily inline for maximum performance.

> **Warning**
> The Java implementation of lambdas associates each generated lambda object strongly with the
> ClassLoader of the target class. This means that each Blackbird instance will add dynamic accessors
> to your classes that cannot be unloaded until the entire ClassLoader is garbage collected.
> Therefore, Blackbird is not appropriate if you instantiate many ObjectMappers, since
> you will eventually run out of class space and OOM.
## Status

Blackbird is new and not as mature as Afterburner, but has been tested and runs well.
Expand Down

0 comments on commit 0e16583

Please sign in to comment.