Skip to content

Commit

Permalink
#2251 add one more todo
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed Jun 26, 2024
1 parent 2f8ddba commit e15fe10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eo-runtime/src/main/java/org/eolang/Dataized.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public final class Dataized {

/**
* Dataization level.
*
* @todo #2251:90min It is necessary to call {@link ThreadLocal#remove()} on
* {@link Dataized#LEVEL} variables to prevent memory leaks. We should either find a place
* where this variable can be removed, or, if this is not possible
* (see https://github.com/objectionary/eo/pull/1930), come up with another solution.
*/
private static final ThreadLocal<Integer> LEVEL = ThreadLocal.withInitial(() -> 0);

Expand Down

0 comments on commit e15fe10

Please sign in to comment.