code: protected final long markAndWriteNext(LogRecord logRecord,
                                            long reservedDelta,
                                            boolean checkSpace,
                                            boolean flush)
                      throws ObjectManagerException
      {
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.entry(this,
                          cclass,
                          "markAndWriteNext",
                          new Object[] { logRecord,
                                        new Long(reservedDelta),
                                        new Boolean(checkSpace),
                                        new Boolean(flush) });
  
          long logSequenceNumber;
          synchronized (fileMarkLock) {
              logSequenceNumber = addLogRecord(logRecord,
                                               reservedDelta,
                                               true,
                                               checkSpace,
                                               flush);
          } // synchronized (fileMarkLock).
  
          if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
              trace.exit(this, cclass
                         , "markAndWriteNext"
                         , new Object[] { new Long(logSequenceNumber), new Long(fileMark) }
                              );
          return logSequenceNumber;
      }
docs: Includes a LogRecord in a FlushSet for writing to end of the LogFile,
  as with writeNext but also sets the truncation mark to immediately befrore
  the written logRecord.
  
  @param logRecord to be appended.
  @param reservedDelta the change to the number of reserved bytes if this write is successful.
  @param checkSpace true is we should check that log file space is available before
  filling the buffer.
  @param flush true if the logRecord must be forced to disk befpre we return.
  @return long Log Sequence Number identifies the poition in the log.
  @throws ObjectManagerException