Closed gengjun-git closed 18 minutes ago
Will this code still work for other types of JDK?
@mergifyio rebase
rebase
Failed conditions
B Maintainability Rating on New Code (required ≥ A)
See analysis details on SonarQube Cloud
Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE
:white_check_mark: pass : 0 / 0 (0%)
:white_check_mark: pass : 5 / 5 (100.00%)
path | covered_line | new_line | coverage | not_covered_line_detail | |
---|---|---|---|---|---|
:large_blue_circle: | com/starrocks/memory/MemoryTrackable.java | 5 | 5 | 100.00% | [] |
:white_check_mark: pass : 0 / 0 (0%)
@Mergifyio backport branch-3.4
@Mergifyio backport branch-3.3
@Mergifyio backport branch-3.2
backport branch-3.4
backport branch-3.3
backport branch-3.2
Why I'm doing:
SizeEstimator.estimate
will calculate the retained size of the object, that is the size of the param object and all the referenced objects. This will lead to repeated counting when the same object is referenced by many objects, and result in very high resource usage when the param object refers to network object or GlobalMetaStore.What I'm doing:
Change to
ClassLayout
to only calculate the shadow size of the object.Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: