summaryrefslogtreecommitdiff
path: root/src/mongo/bson/util/builder.h
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2016-02-22 19:34:35 -0500
committerJason Carey <jcarey@argv.me>2016-02-24 15:10:50 -0500
commitf1de22ddbd5aa49b7bac311f21e4c99eb198eb69 (patch)
treef92366f13b93576fe50c5e9a97cb1d8368ddc19a /src/mongo/bson/util/builder.h
parentf950ac39aeea87cd64f5832b2d5fab451f220b58 (diff)
downloadmongo-f1de22ddbd5aa49b7bac311f21e4c99eb198eb69.tar.gz
SERVER-22802 mmapv1 btree key should write le
Diffstat (limited to 'src/mongo/bson/util/builder.h')
-rw-r--r--src/mongo/bson/util/builder.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/bson/util/builder.h b/src/mongo/bson/util/builder.h
index f4248efbe84..93ddf8dd22a 100644
--- a/src/mongo/bson/util/builder.h
+++ b/src/mongo/bson/util/builder.h
@@ -45,14 +45,7 @@
#include "mongo/util/assert_util.h"
namespace mongo {
-/* Accessing unaligned doubles on ARM generates an alignment trap and aborts with SIGBUS on Linux.
- Wrapping the double in a packed struct forces gcc to generate code that works with unaligned
- values too. The generated code for other architectures (which already allow unaligned accesses)
- is the same as if there was a direct pointer access.
-*/
-struct PackedDouble {
- double d;
-} PACKED_DECL;
+
/* Note the limit here is rather arbitrary and is simply a standard. generally the code works
with any object that fits in ram.