Skip to content

Commit

Permalink
Debugging preparations were restored.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Dec 6, 2023
1 parent 36ec6ae commit fc7ff2d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ class GarbageCollector(internal val environment: EnvironmentImpl) {
val loggables = log.getLoggableIterator(fileAddress)
while (loggables.hasNext()) {
val loggable = loggables.next()
// if (loggable.address == 520806596608L) {
// println("Bad boy !!!")
// }
if (loggable.address == 520806596608L) {
println("Bad boy !!!")
}

if (loggable == null || loggable.address >= nextFileAddress) {
break
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,16 @@ internal class PatriciaTreeMutable(
): Boolean {
var l = loggable
var minAddress = l.address
// if (minAddress == 520806596608L) {
// println("Bad boy !!!")
// }
if (minAddress == 520806596608L) {
println("Bad boy !!!")
}

while (true) {
val type = l.type

// if (l.address == 520806596608L) {
// println("Bad boy !!!")
// }
if (l.address == 520806596608L) {
println("Bad boy !!!")
}

if (type < NODE_WO_KEY_WO_VALUE_WO_CHILDREN || type > MAX_VALID_LOGGABLE_TYPE) {
if (type != NullLoggable.TYPE && type != HashCodeLoggable.TYPE) { // skip null loggable
Expand All @@ -299,9 +299,9 @@ internal class PatriciaTreeMutable(
}

val maxAddress = l.address
// if (maxAddress == 520806596608L) {
// println("Bad boy !!!")
// }
if (maxAddress == 520806596608L) {
println("Bad boy !!!")
}

val sourceTree = PatriciaTreeForReclaim(log, maxAddress, structureId)
val sourceRoot = sourceTree.root
Expand Down

0 comments on commit fc7ff2d

Please sign in to comment.