Browse Source
Move BitmapCommit from inside the PackWriterBitmapPreparer to a new top-level class in preparation for improving the memory footprint of GC's bitmap generation phase. Change-Id: I4d404a5b3a34998b441d23105197f33d32d39670 Signed-off-by: Yunjie Li <yunjieli@google.com>master
Yunjie Li
5 years ago
4 changed files with 37 additions and 25 deletions
@ -0,0 +1,35 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2020, Google LLC and others |
||||||
|
* |
||||||
|
* This program and the accompanying materials are made available under the |
||||||
|
* terms of the Eclipse Distribution License v. 1.0 which is available at |
||||||
|
* http://www.eclipse.org/org/documents/edl-v10.php.
|
||||||
|
* |
||||||
|
* SPDX-License-Identifier: BSD-3-Clause |
||||||
|
*/ |
||||||
|
package org.eclipse.jgit.internal.storage.pack; |
||||||
|
|
||||||
|
import org.eclipse.jgit.lib.AnyObjectId; |
||||||
|
import org.eclipse.jgit.lib.ObjectId; |
||||||
|
|
||||||
|
/** |
||||||
|
* A commit object for which a bitmap index should be built. |
||||||
|
*/ |
||||||
|
public final class BitmapCommit extends ObjectId { |
||||||
|
private final boolean reuseWalker; |
||||||
|
private final int flags; |
||||||
|
|
||||||
|
BitmapCommit(AnyObjectId objectId, boolean reuseWalker, int flags) { |
||||||
|
super(objectId); |
||||||
|
this.reuseWalker = reuseWalker; |
||||||
|
this.flags = flags; |
||||||
|
} |
||||||
|
|
||||||
|
boolean isReuseWalker() { |
||||||
|
return reuseWalker; |
||||||
|
} |
||||||
|
|
||||||
|
int getFlags() { |
||||||
|
return flags; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue