serialLog(new LogItem[] { item }, lqeContext);
lqe = lazyLogQueue.poll();
}
for (LogItem item : itemArray) {
LogEntry logEntry = item.entry;
/*
* Get the old size before marshaling, which updates it.
* Holding the log write latch is not necessary, because the
* parent IN latch prevents other threads from logging this
* node.
*/
item.oldSize = logEntry.getLastLoggedSize();
/*
* If possible, marshall this entry outside the log write latch
* to allow greater concurrency by shortening the write
* critical section. Note that the header may only be created
* during marshalling because it calls entry.getSize().
*/
if (logEntry.getLogType().marshallOutsideLatch()) {
item.header = new LogEntryHeader
(logEntry, item.provisional, item.repContext);
item.buffer = marshallIntoBuffer(item.header, logEntry);
}
}