diff options
| author | Charles E. Rolke <chug@apache.org> | 2011-10-17 20:01:44 +0000 |
|---|---|---|
| committer | Charles E. Rolke <chug@apache.org> | 2011-10-17 20:01:44 +0000 |
| commit | 0e3531d5da3a1de2cbde54c07c37e56a1315faf7 (patch) | |
| tree | c379769d8b65d81439cb0909bde49295ca249455 /cpp/src/qpid/RefCountedBuffer.h | |
| parent | 6018506d22b93c69313750e416aee6d62023c4b6 (diff) | |
| download | qpid-python-0e3531d5da3a1de2cbde54c07c37e56a1315faf7.tar.gz | |
QPID-3540 align issues in Solaris
Restore original code. Then:
1. Change new/delete to malloc/free. Malloc guarantees alignment for any struct.
2. Change store from char* to void*, solving Solaris complaint.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1185350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/RefCountedBuffer.h')
| -rw-r--r-- | cpp/src/qpid/RefCountedBuffer.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpp/src/qpid/RefCountedBuffer.h b/cpp/src/qpid/RefCountedBuffer.h index 67a512d938..f0ea86130b 100644 --- a/cpp/src/qpid/RefCountedBuffer.h +++ b/cpp/src/qpid/RefCountedBuffer.h @@ -28,14 +28,8 @@ namespace qpid { /** - * Reference-counted byte buffer. Alignment guarantees: - * The RefCountedBuffer structure is aligned to the - * refCountedBUfferStructAlign byte boundary specified here. - * The buffer itself has no alignment guarantees. + * Reference-counted byte buffer. No alignment guarantees. */ - -static const size_t refCountedBufferStructAlign = 8; - class RefCountedBuffer : public RefCounted { public: /** Create a reference counted buffer of size n */ @@ -43,8 +37,6 @@ class RefCountedBuffer : public RefCounted { protected: void released() const; - - size_t alignPad; }; } // namespace qpid |
