Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LivenessDebug: Ensuring references dropped on garbage-collected static tables #1152

Closed
nbauernfeind opened this issue Aug 28, 2021 · 0 comments · Fixed by #5188
Closed

LivenessDebug: Ensuring references dropped on garbage-collected static tables #1152

nbauernfeind opened this issue Aug 28, 2021 · 0 comments · Fixed by #5188
Assignees
Labels
bug Something isn't working query engine
Milestone

Comments

@nbauernfeind
Copy link
Member

The provided query below is quite verbose about dropping references to these intermediate static objects.

import java.util.HashMap
m = new HashMap<String, Object>()
for (int i = 0; i < 10000; ++i) {
    m.put("h_"+i, TableTools.emptyTable(i).view("I=i"))
}

This is particularly confusing during start up of an application that generates only static data. Ideally, we only complain about garbage collection of references to refreshing objects. In the case of refreshing tables, the intermediate parent would be retained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working query engine
Projects
None yet
2 participants