6593946: (bf) X-Buffer.compact() does not discard mark as specified

InvalidMarkException now correctly thrown. Thanks to keiths@redhat.com for the bug report and initial fix.

Reviewed-by: sherman, darcy
14 files changed