mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more vfs logging for p4 tests
This commit is contained in:
@@ -17,6 +17,7 @@ package com.intellij.openapi.vfs.newvfs.impl;
|
||||
|
||||
import com.intellij.openapi.application.ApplicationAdapter;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.vfs.InvalidVirtualFileAccessException;
|
||||
import com.intellij.openapi.vfs.newvfs.persistent.FSRecords;
|
||||
import com.intellij.util.ArrayUtil;
|
||||
@@ -73,6 +74,7 @@ import static com.intellij.util.ObjectUtils.assertNotNull;
|
||||
* @author peter
|
||||
*/
|
||||
public class VfsData {
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.openapi.vfs.newvfs.impl.VfsData");
|
||||
private static final int SEGMENT_BITS = 9;
|
||||
private static final int SEGMENT_SIZE = 1 << SEGMENT_BITS;
|
||||
private static final int OFFSET_MASK = SEGMENT_SIZE - 1;
|
||||
@@ -223,6 +225,9 @@ public class VfsData {
|
||||
}
|
||||
|
||||
void setFlag(int id, int mask, boolean value) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("Set flag " + Integer.toHexString(mask) + "=" + value + " for id=" + id);
|
||||
}
|
||||
assert (mask & ~ALL_FLAGS_MASK) == 0 : "Unexpected flag";
|
||||
int offset = getOffset(id) * 2 + 1;
|
||||
while (true) {
|
||||
|
||||
+1
-1
@@ -1061,7 +1061,7 @@ public class PersistentFSImpl extends PersistentFS implements ApplicationCompone
|
||||
else if (VirtualFile.PROP_WRITABLE.equals(propertyChangeEvent.getPropertyName())) {
|
||||
executeSetWritable(file, ((Boolean)newValue).booleanValue());
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("File " + file + " writable=" + file.isWritable());
|
||||
LOG.debug("File " + file + " writable=" + file.isWritable() + " id=" + getFileId(file));
|
||||
}
|
||||
}
|
||||
else if (VirtualFile.PROP_HIDDEN.equals(propertyChangeEvent.getPropertyName())) {
|
||||
|
||||
Reference in New Issue
Block a user