Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
7e24039a
Commit
7e24039a
authored
Sep 01, 2018
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/lisp.h: Add explanation in a comment
parent
321b06b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/lisp.h
src/lisp.h
+10
-1
No files found.
src/lisp.h
View file @
7e24039a
...
...
@@ -866,7 +866,16 @@ union vectorlike_header
Current layout limits the pseudovectors to 63 PVEC_xxx subtypes,
4095 Lisp_Objects in GC-ed area and 4095 word-sized other slots. */
ptrdiff_t size;
/* Align the union so that there is no padding after it. */
/* Align the union so that there is no padding after it.
This is needed for the following reason:
If the alignment constraint of Lisp_Object is greater than the size of
vectorlike_header (e.g. with-wide-int), vectorlike objects which have
0 Lisp_Object fields and whose 1st field has a smaller alignment
constraint than Lisp_Object may end up with their 1st field "before
pseudovector index 0", in which case PSEUDOVECSIZE will return
a "negative" number. We could fix PSEUDOVECSIZE, but it's easier to
just force rounding up the size of vectorlike_header to the alignment
of Lisp_Object. */
Lisp_Object align;
GCALIGNED_UNION
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment