From 4a68d3ebd54342ed72300a957883ed73957054af Mon Sep 17 00:00:00 2001 From: Rickard Green Date: Wed, 21 Sep 2011 23:13:06 +0200 Subject: Fix lost wakeup of scheduler when enqueuing auxiliary work When auxiliary work was enqueued on a scheduler, the wakeup of the scheduler in order to handle this work could be lost. Wakeups in order to handle ordinary work were not effected by this bug. The bug only effected runtime systems with SMP support as follows: * Deallocation of some ETS data structures could be delayed. * On Linux systems not using the NPTL thread library (typically ancient systems with kernel versions prior to 2.6) and Windows systems, the {Port, {exit_status, Status}} message from a terminating port program could be delayed. That is, it only effected port programs which had been started by passing exit_status as an option to open_port/2. --- erts/emulator/beam/erl_process.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 2704359a8f..8422d1378c 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -1151,13 +1151,6 @@ scheduler_wait(int *fcalls, ErtsSchedulerData *esdp, ErtsRunQueue *rq) ASSERT(!(flgs & ERTS_SSI_FLG_SLEEPING)); goto sys_woken; } - if (!(flgs & ERTS_SSI_FLG_SLEEPING)) { - flgs = sched_prep_cont_spin_wait(ssi); - if (!(flgs & ERTS_SSI_FLG_WAITING)) { - ASSERT(!(flgs & ERTS_SSI_FLG_SLEEPING)); - goto sys_woken; - } - } /* * If we got new I/O tasks we aren't allowed to -- cgit v1.2.3 From 981c94e91701beb1d4f0bd52c90e864fe56770d7 Mon Sep 17 00:00:00 2001 From: Lars Thorsen Date: Wed, 4 May 2011 12:38:45 +0200 Subject: [erl_docgen] Missing header level in PDF bookmarks menu The System documentation PDF file was missing a header level in the bookmarks menu and the copyright year generation for PDF's was not correct. --- lib/erl_docgen/priv/xsl/db_pdf.xsl | 21 +++++++++++---------- lib/erl_docgen/priv/xsl/db_pdf_params.xsl | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/erl_docgen/priv/xsl/db_pdf.xsl b/lib/erl_docgen/priv/xsl/db_pdf.xsl index 35f6349f70..48a7a026c1 100644 --- a/lib/erl_docgen/priv/xsl/db_pdf.xsl +++ b/lib/erl_docgen/priv/xsl/db_pdf.xsl @@ -732,22 +732,23 @@ + - - User's Guide - - + + + - - - + + + + @@ -934,9 +935,9 @@ - +     - User's Guide + diff --git a/lib/erl_docgen/priv/xsl/db_pdf_params.xsl b/lib/erl_docgen/priv/xsl/db_pdf_params.xsl index 3dfecf8b74..d2f0350cf1 100644 --- a/lib/erl_docgen/priv/xsl/db_pdf_params.xsl +++ b/lib/erl_docgen/priv/xsl/db_pdf_params.xsl @@ -29,7 +29,7 @@ - Copyright © - + Copyright © - -- cgit v1.2.3 From d5a4fc889fa358da380ec967075132b998fa8cbf Mon Sep 17 00:00:00 2001 From: Lars Thorsen Date: Thu, 1 Sep 2011 09:43:38 +0200 Subject: [erl_docgen] Fix eix file generation for new function spec references --- lib/erl_docgen/priv/xsl/db_eix.xsl | 180 +++++++++++++++++++++++++++---------- make/otp_release_targets.mk | 4 +- 2 files changed, 137 insertions(+), 47 deletions(-) diff --git a/lib/erl_docgen/priv/xsl/db_eix.xsl b/lib/erl_docgen/priv/xsl/db_eix.xsl index 4545322bc2..7a648ddfd7 100644 --- a/lib/erl_docgen/priv/xsl/db_eix.xsl +++ b/lib/erl_docgen/priv/xsl/db_eix.xsl @@ -22,10 +22,16 @@ + + + + %% %% Search data file for @@ -50,9 +56,7 @@ {".html", {function, {" ", ""}}, [ - - - + ]}. {".html", {module, " "}, [""]}. @@ -62,9 +66,7 @@ {".html", {function, {" ", ""}}, [ - - - + ]}. {".html", {clib, " "}, [""]}. @@ -91,69 +93,157 @@ - - + + + + + + + + + + + + + + + + + + + + Error in : + : + + /: + + + + + + + + + + - - + + + + ambiguous spec + unknown spec + + + + + + + + + + + + + + + + + + + + + + + + + + + + {" + ", " + ", " + -"} + + + + + + + , + + + + + + + - + + - - - - - - - - - - + + + + + + + + + + - + + - - + + - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - + + {" ", " ( diff --git a/make/otp_release_targets.mk b/make/otp_release_targets.mk index 8058e634d4..229612630d 100644 --- a/make/otp_release_targets.mk +++ b/make/otp_release_targets.mk @@ -74,10 +74,10 @@ ifneq ($(XML_FILES),) # ---------------------------------------------------- # Generation of application index data # ---------------------------------------------------- -$(HTMLDIR)/$(APPLICATION).eix: $(XML_FILES) +$(HTMLDIR)/$(APPLICATION).eix: $(XML_FILES) $(SPECS_FILES) date=`date +"%B %e %Y"`; \ $(XSLTPROC) --stringparam docgen "$(DOCGEN)" \ - --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude \ + --stringparam gendate "$$date" --stringparam appname "$(APPLICATION)" --stringparam appver "$(VSN)" --xinclude $(TOP_SPECS_PARAM) \ -path $(DOCGEN)/priv/docbuilder_dtd -path $(DOCGEN)/priv/dtd_html_entities $(DOCGEN)/priv/xsl/db_eix.xsl book.xml > $@ docs: $(HTMLDIR)/$(APPLICATION).eix -- cgit v1.2.3